//
//  BalanceDetailViewController.h
//  Balance
//
//  Created by Calvin Kuo on 12-03-22.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

/*
 Status: changed
 Last Merge Date: 05-30-2012
 Last Change Date: 
 Changes:
 1. separator and button animation
 */


#import <UIKit/UIKit.h>
#import "CorePlot-CocoaTouch.h"
#import "EskBarPlot.h"
#import "EskLinePlot.h"
#import "SliderPlot.h"
#import "BalanceModel.h"
#import "CountryBarPlot.h"
#import "TransactionViewController.h"


@interface BalanceDetailViewController : UIViewController <UIScrollViewDelegate,UISplitViewControllerDelegate,EskBarPlotDelegate, EskLinePlotDelegate, SliderPlotDelegate>

{
 @private
    EskBarPlot *barPlot;
    EskLinePlot *linePlot;
    SliderPlot *sliderLinePlot;
    CountryBarPlot *countryBarPlot;
    BOOL pageControlBeingUsed;
    BOOL currentAmountDisplayed;

}
@property (strong, nonatomic) IBOutlet UIScrollView *scrollView;
@property (strong, nonatomic) IBOutlet UIPageControl *pageControl;

@property (strong, nonatomic) id detailItem;
@property (strong, nonatomic) IBOutlet CPTGraphHostingView *lineHostingView;
@property (strong, nonatomic) IBOutlet CPTGraphHostingView *barHostingView;
@property (strong, nonatomic) IBOutlet CPTGraphHostingView *sliderHostingView;
@property (strong, nonatomic) NSMutableArray *selectedCountryNames;
@property (strong, nonatomic) NSMutableArray *selectedCountryBalances;
@property (strong, nonatomic) IBOutlet CPTGraphHostingView *countryBarHostingView;
@property (strong, nonatomic) IBOutlet UILabel *agingDateLabel;
@property (strong, nonatomic) IBOutlet UIButton *currentAmountButton;
@property (strong, nonatomic) IBOutlet UIImageView *separator;

@property (nonatomic, strong) UIViewController *viewController;
@property (strong, nonatomic) IBOutlet UIButton *notesButton;
@property (strong, nonatomic) IBOutlet UIButton *detailsButton;
@property (strong, nonatomic) IBOutlet UIView *buttonsView;
@property (strong, nonatomic) NSString *objectType;
@property (strong, nonatomic) UIActivityIndicatorView *spinner;

- (IBAction)changePage;
- (IBAction)addCurrentAmount:(id)sender;
-(void)changeButtonImage:(UIImage *)buttonImage;


@end
